package com.atguigu.gulimall.product.config;

import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @ClassName ThreadPoolConfigProperties
 * @Description TODO
 * @Author 13290
 * @Date 2022/12/8 12:04
 **/
//匹配配置文件 prefix = "gulimall.thread" 是配置文件的前缀
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    //核心线程数
    private Integer coreSize;
    //最大线程数
    private Integer maxSize;
    //存活时间
    private Integer keepAliveTime;

}
